/*
* @Author: shenyanqiu
* @Date:   2017-12-05 15:00:57
* @Last Modified by:   shenyanqiu
* @Last Modified time: 2017-12-05 15:08:21
*/

import { request } from 'utils';
import { api } from 'config';
export async function getWorknoticeList (params) {
  return request({
    url: api.worknotice.list,
    method: 'get',
    data: params,
  });
}

export async function doCreateNotice (params) {
  return request({
    url: api.worknotice.create,
    method: 'post',
    data: params,
  });
}

export async function removeNotice (params) {
  return request({
    url: api.worknotice.remove,
    method: 'post',
    data: params,
  });
}
export async function batchRemoveNotice (params) {
  return request({
    url: api.worknotice.batchRemove,
    method: 'post',
    data: params,
  });
}
